<?php
/**********************************************************************
    Copyright (C) FrontAccounting, LLC.
	Released under the terms of the GNU General Public License, GPL, 
	as published by the Free Software Foundation, either version 3 
	of the License, or (at your option) any later version.
    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  
    See the License here <http://www.gnu.org/licenses/gpl-3.0.html>.
***********************************************************************/
$page_security = 'SA_STANDARDCOST';
$path_to_root = "../..";
include_once($path_to_root . "/includes/session.inc");

include_once($path_to_root . "/includes/date_functions.inc");
include_once($path_to_root . "/includes/ui.inc");
include_once($path_to_root . "/includes/banking.inc");
include_once($path_to_root . "/includes/manufacturing.inc");
include_once($path_to_root . "/includes/data_checks.inc");
include_once($path_to_root . "/pittycash/includes/db/pittycash_db.inc");
include_once($path_to_root . "/inventory/includes/inventory_db.inc");
$js = "";
if ($use_popup_windows)
	$js .= get_js_open_window(900, 500);
page(_($help_context = "Setting Kuota Kas Kecil"), false, false, "", $js);


//--------------------------------------------------------------------------------------
if (isset($_POST['UpdateData']))
{
	save_setting_kas_kecil(input_num('setting_kas'));
	display_notification('Kuota kas kecil berhasil diperbaharui.');
	unset($_POST);
}

//-----------------------------------------------------------------------------------------

start_form();
$myrow = get_setting_kas_kecil();
if (!isset($_POST['setting_kas']))
	$_POST['setting_kas'] = price_format($myrow);

start_table(TABLESTYLE2);

amount_row(_("Kuota Kas Kecil :"), "setting_kas", null, "class='tableheader2'");


end_table(1);

submit_center('UpdateData', _("Update"), true, false, 'default');

end_form();
end_page();

?>
